package org.softmed.rest.generation.handler;

import java.util.ArrayList;
import java.util.List;

import org.softmed.rest.server.core.handler.SpecificHandlerSolver;

import com.google.inject.Inject;
import com.google.inject.Provider;
import com.google.inject.name.Named;

public class ExtendedHandlerSolutionProvider implements
		Provider<List<SpecificHandlerSolver>> {
	private List<SpecificHandlerSolver> specificHandlerSolvers = new ArrayList<SpecificHandlerSolver>();

	@Inject
	public ExtendedHandlerSolutionProvider(@Named("GroovyClassSolver")
	SpecificHandlerSolver someObject0, @Named("GroovySolver")
	SpecificHandlerSolver someObject1, @Named("JavaSolver")
	SpecificHandlerSolver someObject2, @Named("ActionSolver")
	SpecificHandlerSolver someObject3) {

		specificHandlerSolvers.add(someObject3);
		specificHandlerSolvers.add(someObject0);
		specificHandlerSolvers.add(someObject2);
		specificHandlerSolvers.add(someObject1);

	}

	public List<SpecificHandlerSolver> get() {
		return specificHandlerSolvers;
	}
}